package com.rabbit.eap.system.convert;

import com.rabbit.eap.framework.shiro.vo.LoginSysRoleVO;
import com.rabbit.eap.system.entity.SysRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @projectName: eap
 * @packageName: com.rabbit.eap.system.convert
 * @className: SysRoleConvert
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/6/26 19:45
 * <p>Description: SysRoleConveret </p>

 */
@Mapper
public interface SysRoleConvert {
    SysRoleConvert INSTANCE = Mappers.getMapper(SysRoleConvert.class);
    /**
     * @Description: 系统角色转换为登录角色对象集合
     * @methodName: sysRoleToLoginSysRole
     * @param sysRoleList:
     * @return: java.util.List<com.rabbit.eap.framework.shiro.vo.LoginSysRoleVO>
     * @date: 2020/6/26 19:51
     * @author: rabbit
     *
     */
    List<LoginSysRoleVO> sysRoleToLoginSysRole(List<SysRole>  sysRoleList);
}
